package com.ta.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ta.gulimall.common.utils.system.PageUtils;
import com.ta.gulimall.order.view.entity.OrderEntity;
import com.ta.gulimall.order.view.vo.OrderConfirmVo;
import com.ta.gulimall.order.view.vo.OrderSubmitVo;
import com.ta.gulimall.order.view.vo.SubmitOrderResponseVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author tuao
 * @email tuaoo@gmail.com
 * @date 2022-10-29 01:15:27
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 商品结算
     * @return
     */
    OrderConfirmVo goodsConfirm() throws ExecutionException, InterruptedException;

    /**
     * 创建订单
     * @param vo
     * @return
     */
    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

}

